package cn.edu.nju.askme.dao;

import java.util.List;

import cn.edu.nju.askme.model.Paper;

public interface IPaperDAO {

	void save(Paper transientInstance);

	void delete(Paper persistentInstance);

	Paper findById(java.lang.Integer id);

	List<Paper> findByExample(Paper instance);

	List findByProperty(String propertyName, Object value);

	List<Paper> findByTitle(Object title);

	List<Paper> findByIntroduction(Object introduction);
	
	public List<Paper> findByUser(Object user);

	List findAll();

	Paper merge(Paper detachedInstance);

	void attachDirty(Paper instance);

	void attachClean(Paper instance);

}